package com.gjm.demo.configuration;

import com.gjm.demo.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ConfigurationDemo {

    @Value("${key.value2}")
    private String value1;

    @Value("${key.value1}")
    private Integer value2;

    @Value("${key.value3}")
    private boolean value3;

    @Value("${float.value}")
    private float value4;

    @Autowired
    private Student student;

    @Autowired
    private DBTypes dbTypes;

    public void print() {
//        System.out.println(value1);
//        System.out.println(value2);
//        System.out.println(value3);
//        System.out.println(value4);
//        System.out.println(student);
//        System.out.println(dbTypes);
    }

}
